body {
    background-color: #F5F7FA;
    overflow-x: hidden;
    line-height: 1;
    letter-spacing: -0.4px;
    font-family: 'DM Sans', sans-serif;
    /*移动端背景不变蓝*/
    -webkit-tap-highlight-color: transparent;
}

a {
    color: #1890ff;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}

@keyframes rotate{
    0%{
        transform: rotate(0);
    }
    50%{
        transform:rotate(180deg);
    }
    100%{
        transform: rotate(360deg);
    }
}
.rotate{
    transition: 0.1s;
    transform-origin: 50%;
    animation: rotate .8s linear infinite;  /*开始动画后无限循环，用来控制rotate*/
}

header {
    width: 100%;
    position: fixed;
    top: 0;
    z-index: 300;
    h1 {
        font-size: 18px;
        font-weight: 500;
    }

    .wrap {
        background-color: #FFF;
        padding: 18px 24px;
        position: relative;
        display: flex;
        align-items: center;
        box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);

        .logo {
            width: 20%;

            img {
                height: 24px;
                width: 24px;
                display: block;
            }
        }

        .title {
            flex: 1;
            text-align: center;
            font-size: 16px;
            font-weight: 500;
            color: #303133;
        }

        .action {
            width: 20%;
            color: #C0C4CC;
            display: flex;
            justify-content: flex-end;
            .iconfont {
                font-size: 20px;
            }

            .iconmenu-burger2 {
                margin-left: 24px;
            }
        }
    }
    .search-page {
        display: none;
        position: absolute;
        top: 0;
        height: 100vh;
        left: 0;
        right: 0;
        z-index: 100;
        background-color: #FFF;
        .search-header {
            display: flex;
            position: relative;
            align-items: center;
            padding: 14px 16px;
            font-size: 14px;
            font-weight: 400;
            border-bottom: 1px solid #EBEEF5;
            .left {
                display: flex;
                flex: 1;
                position: relative;
                color: #909399;
                border: 1px solid #FFF;
                border-radius: 4px;
                input {
                    flex: 1;
                    padding: 6px 32px ;
                    background-color: #F0F2F5;
                    border-radius: 4px;
                    line-height: 20px;
                    font-size: 14px;
                    border: none;
                    &::-webkit-input-placeholder {
                        color: #909399;
                        line-height: 20px;
                        font-size: 14px;
                    }
                    &:focus {
                        background-color: #FFF;
                        outline: none;
                    }
                }
                .iconfont {
                    font-size: 14px;
                    position: absolute;
                    top: 50%;
                    transform: translate(0, -50%);
                    left: 10px;
                }
            }
            .right {
                color: #606266;
                margin-left: 10px;
                line-height: 16px;
            }
        }
        .search-wrap {
            display: block;
            position: initial;
            height: 100%;
        }
        .search-tab {
            li {
                padding-top: 16px;
                padding-bottom: 8px;
            }
        }
        .result-list {
            max-height: calc(100% - 115px);
            min-height: calc(100% - 115px);
        }
    }
}
.sidebar {
    display: none;
    position: absolute;
    overflow: hidden;
    top: 0;
    height: 100vh;
    z-index: 101;
    left: 0;
    right: 0;
    background-color: #FFF;
}
.sidebar-top {
    padding: 24px 32px;
    font-size: 14px;
    line-height: 22px;
    border-bottom: 1px solid #EBEEF5;
    .account-info {
        display: flex;
        line-height: 16px;
        font-weight: 500;
        .avatar {
            line-height: 1;
            margin-right: 12px;
            padding: 8px;
            border-radius: 50%;
            background-color: #C0C4CC;
        }
        .iconUser {
            font-size: 24px;
            color: #FFF;
        }
        .title {
            color: #303133;
            font-size: 14px;
        }
        .tag {
            margin-top: 6px;
            font-size: 12px;
            span {
                border-radius: 4px;
                padding: 0 4px;
                color: #FFF;
                line-height: 16px;
            }
            .gray {
                background-color: #C0CCDA;
            }
            .orange {
                background-color: #FF873F;
            }
            .red {
                background-color: #F56C6C;
            }
        }
    }
    .account-remain {
        margin-top: 16px;
    }
    .account-time {
        margin-top: 6px;
    }
}
.sidebar-header {
    padding: 18px 24px;
    width: calc(100% - 48px);
    display: flex;
    font-size: 14px;
    align-items: center;
    box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.1);
    position: relative;
    .logo {
        flex: 1;
        img {
            height: 24px;
            width: 24px;
        }
    }
    .center {
        font-size: 18px;
        font-weight: 500;
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }
}
.sidebar-wrap {
    max-height: calc(100vh - 127px);
    overflow: auto;
    overflow-x: hidden;
}
.sidebar-body {
    padding: 26px 32px 0;
}
.sidebar-item {
    font-size: 14px;
    margin-top: 32px;
    &:first-child {
        margin-top: 0;
    }
    &.is-close {
        @keyframes turn {
            0% {
                transform: rotate(0deg);
            }
            50% {
                transform: rotate(90deg);
            }
            100% {
                transform: rotate(180deg);
            }
        }
        .iconfont {
            transform: rotate(180deg);
            animation: turn .2s linear;
        }
        a {
            display: none;
        }
    }
    .title {
        display: flex;
        align-items: center;
        font-weight: bold;
        line-height: 20px;
        color: #303133;
    }
    .iconfont {
        font-size: 12px;
        margin-left: auto;
    }
}
.sub-sidebar-item {
    margin-top: 16px;
    color: #606266;
    line-height: 24px;
}
.sidebar-footer {
    background-color: #FFF;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    position: absolute;
    padding: 24px 0;
    box-sizing: border-box;
    border-top: 1px solid #EBEEF5;
    bottom: 0;
    left: 0;
    right: 0;
    .footer-item {
        font-size: 12px;
        line-height: 16px;
        font-weight: bold;
        color: #606266;
        text-align: center;
    }
    a {
        color: inherit;
    }
}
main {
    padding-top: 60px;
}
 /**
 遮罩层
  */
.mask {
    position: absolute;
    top: 0;
    height: 100vh;
    left: 0;
    right: 0;
    background-color: rgba(0, 0, 0, .7);
    z-index: 2;
}
button {
    &.btn {
        position: relative;
        white-space: nowrap;
        padding: 11px 0;
        border-radius: 4px;
        height: 36px;
        margin-left: 12px;
        width: 100%;
        &:first-child {
            margin-left: 0;
        }
        &:focus {
            outline: none;
        }
    }
    &.btn-default {
        background-color: #FFF;
        color: #1890FF;
        border: 1px solid #1890FF;
    }
    &.btn-info {
        background-color: #1890FF;
        border: none;
        color: #FFF;
        &:active {
            background-color: rgba(24,144,255, .7);
        }
    }
}

.loading {
    position: absolute;
    left: 0;
    right: 0;
    height: 100vh;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    .iconfont {
        font-size: 20px;
        transition: 0.1s;
        transform-origin: 50%;
        animation: rotate 1s linear infinite;
    }
}
.toast {
    padding: 10px;
    position: absolute;
    z-index: 9999;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0,0,0,.7);
    color: #fff;
    font-size: 16px;
    border-radius: 4px;
}
/*
    modal
*/
.modal {
    position: absolute;
    z-index: 500;
    width: calc(100% - 64px);
    top: 200px;
    left: 50%;
    transform: translate(-50%);
    padding: 16px;
    background-color: #FFF;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    line-height: 1;
    .modal-header {
        position: relative;
        text-align: right;
        .iconbuzhichi {
            font-size: 12px;
            color: #C0CCDA;
        }
    }
    .modal-body {
        margin-top: 12px;
        color: #303133;
        line-height: 24px;
    }
    .modal-footer {
        margin-top: 12px;
        margin-bottom: 12px;
        text-align: center;
        button {
            width: 90px;
            margin-left: 16px;
            &:first-child {
                margin-left: 0;
            }
        }
    }
}
.no-data {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    font-size: 14px;
    color: #303133;
    .iconfont {
        font-size: 64px;
        color: #909399;
        margin-bottom: 16px;
    }
}
/* 认证 */
.icon-auth {
    position: absolute;
    right: 0;
    bottom: 0;
    font-size: 12px;
    padding: 2px;
}

.tx-popover {
    .iconfont {
        font-size: 14px;
        color:#C0C4CC;
        position: relative;
        margin-left: 5px;
    }
}